package com.minis.main;

import com.minis.Context.ClassPathXmlApplicationContext;
import com.minis.exception.NoSuchBeanDefinitionException;

/**
 * Create by 18415 on 2025/7/27 18:52
 */
public class Application {
    public static void main(String[] args) throws NoSuchBeanDefinitionException {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("beans.xml");

        AService aService = (AService) applicationContext.getBean("aService");
        aService.hello();

        CService cService = (CService) applicationContext.getBean("cService");
        cService.hello();

        cService.call("bai bai");
    }
}
